package com.project.bean;

import java.util.Date;
import java.util.List;

public class PostBean {
    private Integer pId;
    //当前用户的id
    private Integer pUId;
    //动态的内容
    private String pMessage;
    //发布时间
    private Date pTime;
    //发布时间 String格式
    private String pDate;
    //上传的图片
    private String pImg;
    //发布动态的人
    private UserBean userBean;
    //评论
    
    private List<CommentBean> commentBeans;
    

    public String getpDate() {
		return pDate;
	}

	public void setpDate(String pDate) {
		this.pDate = pDate;
	}

	public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public Integer getpUId() {
        return pUId;
    }

    public void setpUId(Integer pUId) {
        this.pUId = pUId;
    }

    public String getpMessage() {
        return pMessage;
    }

    public void setpMessage(String pMessage) {
        this.pMessage = pMessage == null ? null : pMessage.trim();
    }

    public Date getpTime() {
        return pTime;
    }

    public void setpTime(Date pTime) {
        this.pTime = pTime;
    }

    public String getpImg() {
        return pImg;
    }

    public void setpImg(String pImg) {
        this.pImg = pImg == null ? null : pImg.trim();
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean=userBean;
    }

    public List<CommentBean> getCommentBeans() {
        return commentBeans;
    }

    public void setCommentBeans(List<CommentBean> commentBeans) {
        this.commentBeans=commentBeans;
    }

	@Override
	public String toString() {
		return "PostBean [pId=" + pId + ", pUId=" + pUId + ", pMessage=" + pMessage + ", pTime=" + pTime + ", pDate="
				+ pDate + ", pImg=" + pImg + ", userBean=" + userBean + ", commentBeans=" + commentBeans + "]";
	}


    
}